namespace Admin2025.Domain.Entities;

public abstract class EntityBase
{
    public Guid Id { get; set; }// int long guid(uuid)
    public string? Code { get; set; }// 权限中的code值形式设计如下：Order.Create, Order.Delete, Order.Edit, Order.Split

    public bool IsActived { get; set; } = true;
    public bool IsDeleted { get; set; } = false;

    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
    public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;

    public Guid CreatedBy { get; set; } = Guid.Empty;
    public Guid UpdatedBy { get; set; } = Guid.Empty;

    public int DisplayOrder { get; set; }

    public string? Remarks { get; set; }
}